package com.guonl.open.api.request.waybill;

import com.guonl.open.api.validation.AtLeastOneNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@AtLeastOneNotEmpty(fields = {"loadingAddress", "(loadingLongitude,loadingLatitude)"}, message = "装货地详细地址和装货坐标,不能同时为空")
@Data
public class ApiLoadingInfoRequest {

//    @ApiModelProperty(value = "装货人姓名")
//    @NotBlank(message = "装货人姓名不能为空")
//    private String freighterName;
//
//    @ApiModelProperty(value = "装货电话")
//    @NotBlank(message = "装货电话不能为空")
//    private String loadingPhone;

    @ApiModelProperty(value = "装货地县区编码")
//    @NotBlank(message = "装货地县区编码不能为空")
    private String loadingAreaId;

    @ApiModelProperty(value = "装货地详细地址")
//    @NotBlank(message = "装货地详细地址不能为空")
    private String loadingAddress;

    @ApiModelProperty(value = "装货时间 yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "装货时间不能为空")
    private String loadingTime;

    @ApiModelProperty(value = "装货图片")
    @NotBlank(message = "装货图片不能为空")
    private String loadingImage;

    @ApiModelProperty(value = "装货质量 KG")
//    @DecimalMin(value = "0.0", message = "装货质量不能小于0")
//    @NotNull(message = "装货质量不能为空")
    private BigDecimal loadingNumber;

    @ApiModelProperty(value = "装货坐标经度")
//    @NotBlank(message = "装货坐标经度不能为空")
    private String loadingLongitude;

    @ApiModelProperty(value = "装货坐标纬度")
//    @NotBlank(message = "装货坐标纬度不能为空")
    private String loadingLatitude;



}
